#ifndef __IIC_H__
#define __IIC_H__

#include <REGX52.h>
#include "intrins.h"

sbit SCL=P2^0;
sbit SDA=P2^1;


void I2C_init();
void IIC_Start(void);
void IIC_Stop(void);
unsigned char IIC_Wait_ACK(void);
void IIC_ACK();
void IIC_NAck();
void IIC_Send_Byte(unsigned char byte);
unsigned char IIC_Read_Byte(unsigned char ack);

#endif